package com.jycrm.presentation.pages.system.datadict;

import org.apache.tapestry.event.PageEvent;

import com.jycrm.presentation.core.JyBasePage;
import com.jycrm.presentation.pages.main.Main;

public class ParameterFrame extends JyBasePage{
	
	private String parameterRightUrl;

	public String getParameterRightUrl() {
		return parameterRightUrl;
	}

	public void setParameterRightUrl(String parameterRightUrl) {
		this.parameterRightUrl = parameterRightUrl;
	}


	public void pageBeginRender(PageEvent e) {
		
		if(!e.getRequestCycle().isRewinding()) {
			Object str[] = e.getRequestCycle().getServiceParameters();
			System.out.println("str=="+str[0]);
			if(str != null) {
				if(str.length == 1) {
					if(str[0] instanceof String) {
						ParameterFrame frame = (ParameterFrame)e.getRequestCycle().getPage("ParameterFrame");
						frame.setParameterRightUrl("app?service=page/ColumnSet");
					}
				}
			}	
		}	
	}

}
